package com.sls.web.manager.action.system;

import javax.annotation.Resource;

import com.sls.web.manager.action.SuperAction;
import com.sls.web.manager.sys.service.MenuBuildService;

public class MenuAction extends SuperAction {

	private static final long serialVersionUID = -5400615207972560221L;

	@Resource(name = "menuBuildService")
	private MenuBuildService menuBuildService;

	// 常用
	public String common() {
		return "common";
	}

	// 头部
	public String header() {
		return "header";
	}

	// 管理员
	public String admin() {
		return "admin";
	}

	/**
	 * 刷新菜单缓存
	 * 
	 * @return
	 */
	public String refresh() {
		menuBuildService.builMenu();
		return NONE;
	}
}